package com.cskaoyan.wx.controller;

import com.cskaoyan.bean.Region;
import com.cskaoyan.service.RegionService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.service.WxRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * 功能:地址
 * 作者:chen11
 */
@RestController
public class WxRegionController {
    @Autowired
    WxRegionService wxRegionService;

    @RequestMapping("wx/region/list")
    public BaseRespVo SlecetRegionList(Integer pid){
        List<Region> region = wxRegionService.SlecetRegionList(pid);
        return BaseRespVo.ok(region);
    }
}
